import QtQuick 2.9
import QtQuick.Controls 2.5

Row {
    id: root
    width: parent.width

    property string title
    property string placeholderText
    property alias showAsPassword: txtText.showAsPassword
    property alias  text: txtText.text

    Label {
        id: txtTitle
        width: root.width > 200 ? parent.width * 0.2 : 50
        height: parent.height
        horizontalAlignment: Label.AlignHCenter
        verticalAlignment: Label.AlignVCenter
        font.pixelSize: root.height * 0.6

        text: root.title
    }

    BorderTextField {
        id: txtText
        width: parent.width - txtTitle.width
        height: parent.height
    }


}
